package Source;

import java.util.ArrayList;

/**
 *
 * @author Joshua King
 */
public class DisplayEditAirport {
    private String[] airportData = {""};
    
    public String[] getAirportData() {
        return airportData;
    }
    
    public void retrieveAirport() {
        FlightServerInteraction logIn = new FlightServerInteraction();
        ArrayList<String> request = new ArrayList<String>();
        ArrayList<String> reply = new ArrayList<String>();
        request.add(0, "getAirports");
        reply = logIn.run(request);
        System.out.println(reply);
        airportData = new String[reply.size()];
        for (int i = 0; i < reply.size(); i++)
        {
            airportData[i] = reply.get(i);
            System.out.println(airportData[i]);
        }
        //Grab some data.
    }
}
